<?php
/* @var $this SaleController */
/* @var $model Sale */

$this->breadcrumbs=array(
	'[销售记录]管理'=>array('admin'),
	'添加[销售记录]',
);
//设置页面标题
$this->pageTitle=Yii::app()->name.' - 添加[销售记录]';
$this->contentTitle='添加[销售记录]';
?>
<!--表单内容-->
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'sale-form',
	'enableAjaxValidation'=>false,
        'enableClientValidation'=>true,
        'clientOptions'=>array(
            'validateOnSubmit'=>true
        ),
    'htmlOptions'=>array('class'=>'ajax_form'),
)); ?>
<table cellspacing="1" class="myform">
	<tr>
		<td align="right"><?php echo $form->labelEx($model,'party_id'); ?></td>
		<td>
			<?php echo $form->textField($model,'party_id',array('class'=>'fl input')); ?>
			<?php echo $form->error($model,'party_id'); ?>
		</td>
	</tr>

	<tr>
		<td align="right"><?php echo $form->labelEx($model,'order_number'); ?></td>
		<td>
			<?php echo $form->textField($model,'order_number',array('size'=>60,'maxlength'=>255,'class'=>'fl input')); ?>
			<?php echo $form->error($model,'order_number'); ?>
		</td>
	</tr>

	<tr>
		<td align="right"><?php echo $form->labelEx($model,'product_name'); ?></td>
		<td>
			<?php echo $form->textField($model,'product_name',array('size'=>50,'maxlength'=>50,'class'=>'fl input')); ?>
			<?php echo $form->error($model,'product_name'); ?>
		</td>
	</tr>

	<tr>
		<td align="right"><?php echo $form->labelEx($model,'bar'); ?></td>
		<td>
			<?php echo $form->textField($model,'bar',array('size'=>60,'maxlength'=>255,'class'=>'fl input')); ?>
			<?php echo $form->error($model,'bar'); ?>
		</td>
	</tr>

	<tr>
		<td align="right"><?php echo $form->labelEx($model,'goods_number'); ?></td>
		<td>
			<?php echo $form->textField($model,'goods_number',array('size'=>60,'maxlength'=>255,'class'=>'fl input')); ?>
			<?php echo $form->error($model,'goods_number'); ?>
		</td>
	</tr>

	<tr>
		<td align="right"><?php echo $form->labelEx($model,'discount'); ?></td>
		<td>
			<?php echo $form->textField($model,'discount',array('class'=>'fl input')); ?>
			<?php echo $form->error($model,'discount'); ?>
		</td>
	</tr>

	<tr>
		<td align="right"><?php echo $form->labelEx($model,'add_time'); ?></td>
		<td>
			<?php echo $form->textField($model,'add_time',array('class'=>'fl input')); ?>
			<?php echo $form->error($model,'add_time'); ?>
		</td>
	</tr>

	<tr>
		<td align="right"><?php echo $form->labelEx($model,'price'); ?></td>
		<td>
			<?php echo $form->textField($model,'price',array('class'=>'fl input')); ?>
			<?php echo $form->error($model,'price'); ?>
		</td>
	</tr>

	<tr>
		<td align="right"><?php echo $form->labelEx($model,'sale_count'); ?></td>
		<td>
			<?php echo $form->textField($model,'sale_count',array('class'=>'fl input')); ?>
			<?php echo $form->error($model,'sale_count'); ?>
		</td>
	</tr>

	<tr>
		<td align="right"><?php echo $form->labelEx($model,'amount'); ?></td>
		<td>
			<?php echo $form->textField($model,'amount',array('class'=>'fl input')); ?>
			<?php echo $form->error($model,'amount'); ?>
		</td>
	</tr>

	<tr>
        <td align="right"></td>
        <td>
            <input class="but" type="submit" name="yt0" value="提 交" />        </td>
    </tr>
</table>
<?php $this->endWidget(); ?>
<!--表单内容-->
